package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Menu;
import com.itheima.pojo.Permission;

import java.util.List;

public interface MenuService {
    //新增菜单
    public  void   add(Menu  menu);

    //分页查询菜单
    public PageResult pageQuery(QueryPageBean queryPageBean);

    //根据id删除菜单
    public    void   deleteById(Integer  id);

    List<Menu> showMenuByPermission(Integer roleId);

    List<Menu> findChildrenById(Integer menuId);

}
